package com.spring.aop.exposeproxy;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName main
 * @Description 测试响应拦截 test1 test2
 * AspectJTestService before...
 * this is test1
 * AspectJTestService before...
 * this is test2
 *
 * @Author suncx
 * @Date 2020/5/16 14:03
 * @Version 1.0
 */
public class Main {
    @Test
    public void t1() {
        ApplicationContext bf = new ClassPathXmlApplicationContext("/aop/AopExposeProxyTest.xml");
        TestService bean = (TestService) bf.getBean("TestService");
        bean.test1();
    }
}
